<?php
define('MODULE_DIR', dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'modules'.DIRECTORY_SEPARATOR);
define('CONTROLLER_DIR', dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'controllers'.DIRECTORY_SEPARATOR);
$routers = array('lienhe', 'baogia', 'gioithieu', 'dichvu');
function __autoload($className) {
    $fileName = $className.'.php';
    if(file_exists(CONTROLLER_DIR.$fileName)){
        require_once CONTROLLER_DIR.$fileName;
    }
    if(file_exists(MODULE_DIR.$fileName)){
        require_once MODULE_DIR.$fileName;
    }   
}
?>
